//
// Created by luolijun on 2021/11/6.
//

#ifndef NAMEDACTION_H
#define NAMEDACTION_H

#include <QAction>
#include <QObject>

namespace falcon {

class NamedAction : public QAction {
public:
    explicit NamedAction(const QString& name, QObject* parent = nullptr);
    explicit NamedAction(const QString& name, const QString& text, QObject* parent = nullptr);
    explicit NamedAction(const QString& name, const QIcon& icon, const QString& text, QObject* parent = nullptr);

public:
    const QString& group() const;
    const QString& name() const;
    QString fullName() const;

private:
    void naming(const QString& fname);

public:
    QString _group;
    QString _name;
};

} // namespace falcon
#endif // NAMEDACTION_H
